package ScreensManager.GameScreens 
{
	import flash.events.MouseEvent;
	import ScreensManager.Screen;
	import ScreensManager.ScreenManager;
	/**
	 * ...
	 * @author Danilo Gama
	 */
	public class StartButton extends Screen
	{
		
		public function StartButton() 
		{
			Main.getInstance().stage.addEventListener(MouseEvent.MOUSE_DOWN, onClick, false, 0, true);
		}
		
		override public function drawScreen():void
		{
			Main.getInstance().addChild(this);
		}
		
		private function onClick(e:MouseEvent):void
		{
			ScreenManager.setCurrentScreen(Screens.GAME_SCREEN);
		}
		
		private function removeListener():void
		{
			Main.getInstance().stage.removeEventListener(MouseEvent.MOUSE_DOWN, onClick);
		}
	}
}